function throttle (fn,time) {
  let timerout
  return function () {
    let args = arguments
    let self = this
    if (timerout) return
    timerout = setTimeout(() => {
      fn.apply(self, args)
      timerout = null 
    }, time);
  }
}

function clickfn(){
    console.log("click");
}
export {throttle}